home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_riv_acme3dohider.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  49 lines

  1. # Jones 3D Cog Script
  2. #
  3. # RIV_Acme3doHider.cog
  4. #
  5. # much work to hide/show one lousy 3do.  Stupid horizon sky.
  6. #
  7. # [TRM]
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14.     message entered
  15.     
  16.     thing   bracket         # hide/show this
  17.     
  18.     sector  hideHammers
  19.     sector  showHammers0    linkID=1
  20.     sector  showHammers1    linkID=1
  21.     
  22.     int     canSee=1        local
  23.         
  24. end
  25.  
  26. # ========================================================================================
  27. code
  28.  
  29. entered:
  30.  
  31.     if((GetSenderRef() == hideHammers) && (canSee == 1))
  32.     {
  33.         canSee = 0;
  34.         SetThingFlags(bracket, 0x10);
  35.     }
  36.     
  37.     if((GetSenderID() == 1) && (canSee == 0))
  38.     {
  39.         canSee = 1;
  40.         ClearThingFlags(bracket, 0x10);
  41.     }
  42.  
  43.     return;
  44.  
  45. # ========================================================================================
  46.  
  47. end
  48.  
  49.